package com.example.demo.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "保存操作员入参", description = "保存操作员入参")
public class OperatorSaveParam extends BaseParam {
    @NotNull(message = "账号不能为空")
    @ApiModelProperty(value = "账号", name = "username", required = true, example = "admin")
    private String username;

    @NotNull(message = "密码不能为空")
    @ApiModelProperty(value = "密码", name = "password", required = true, example = "123456")
    private String password;
}
